# 演示单继承
class Phone:
    IMEI = None # 序列号
    producer = "HM" # 厂商

    def call_by_4g(self):
        print("4g通话")

class Phone2022(Phone):
    face_id = 10001  # 面部识别ID

    def call_by_5g(self):
        print("5g通话")

phone = Phone2022()
print(phone.producer)
phone.call_by_4g()
phone.call_by_5g()
# 演示多继承
class NFC_card:
    def read_card(self):
        print("NFC只读卡")
    def write_card(self):
        print("NFC写卡")
class RemoteControl:
    def control(self):
        print("远程遥控已开启")
class Myphone2022(Phone2022,NFC_card,RemoteControl):
    pass

phone = Myphone2022()
print(phone.producer)
phone.call_by_5g()
phone.read_card()
phone.write_card()